import request from '@/utils/request'

export function listtakeinHead(query) {
  return request({
    url: '/takeinHead/list',
    method: 'get',
    params: query
  })
}

export function createtakeinHead(data) {
  return request({
    url: '/takeinHead/create',
    method: 'post',
    data
  })
}

export function readtakeinHead(data) {
  return request({
    url: '/takeinHead/get/' + data.id,
    method: 'get'
  })
}

export function updatetakeinHead(data) {
  return request({
    url: '/takeinHead/update',
    method: 'post',
    data
  })
}

export function deletetakeinHead(data) {
  return request({
    url: '/takeinHead/delete/' + data.fbillno,
    method: 'delete'
  })
}
